package com.ihr360.payroll.dao;

import com.ihr360.payroll.model.dto.salary.report.MergeReportStaffSalary;
import com.ihr360.rest.reposity.SimpleRestReposity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Eric on 2018/4/12/012.
 */
public interface MergeReportStaffSalaryRepository extends SimpleRestReposity<MergeReportStaffSalary, Long> {
    Page<MergeReportStaffSalary> findByCompanyIdAndTermSalaryId(String companyId, Long salaryTermId, Pageable pageable);

    List<MergeReportStaffSalary> findByCompanyIdAndTermSalaryId(String companyId, Long salaryTermId);

    Page<MergeReportStaffSalary> findByCompanyIdAndIdStaffIdInAndTermSalaryId(String companyId,List<String> staffIdList, Long salaryTermId, Pageable pageable);

}
